import request from "@/utils/axios";
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()
// 运单导出
export function waybillexport(params) {
  return request({
    url: `${base}/api/waybill/export`,
    method: "post",
    data: params,
  });
}
//云管理列表API
export function getWaybillListFn(params) {
  return request({
    url: `${base}/api/waybill/list`,
    method: "post",
    data: {
      ...params,
      header_id: "1",
    },
  });
}

//三级地区搜索
export function getRegionList(params) {
  return request({
    url: `${base}/api/company/region/address_list`,
    data: params,
    method: "post",

  });
}
// 合单详情
export function single_details(params) {

  return request({
    url: `${base}/api/waybill/combine/detail`,
    data: params,
    method: "post",
  });
}
// 确认合单
export function combineCreate(params) {
  return request({
    url: `${base}/api/waybill/combine/create`,
    data: params,
    method: "post",
  });
}
// 确认拆单
export function affirmDisassembly(params) {
  return request({
    url: `${base}/api/waybill/separate/create`,
    data: params,
    method: "post",
  });
}

//添加运单API
export function WaybillAddFn(params) {
  return request({
    url: `${base}/api/waybill/create`,
    method: "post",
    data: params,
  });
}
//运单轨迹节点 API
export function WaybillNodeListFn(params) {
  return request({
    url: `${base}/api/waybillNode/list`,
    method: "post",
    data: params,
  });
}

//获取温层和支付方式
export function getTempAndPayList(params) {
  // return request({
  //   url: `${base}/api/search/option/list`,
  //   method: "post",
  //   data: params,
  //   headers: {
  //     token: "1ba4686338ee7354395ad13f7d3466c1",
  //   },
  // });
}

//获取路由
export function getRouterList(params) {
  return request({
    url: `${base}/api/company/router/box`,
    method: "post",
    data: params,
  });
}

//获取承运产品类型
export function getTransportsList(params) {
  return request({
    url: `${base}/api/transportType/options`,
    method: "post",
    data: params,

  });
}

//获取经办人
export function reqHandlersList(params = {}) {
  return request({
    url: `${base}/api/admin/box`,
    method: "post",
    data: params,

  });
}
//获取负责人
export function getChargeDataBox(params = {}) {
  return request({
    url: `${base}/api/admin/list_by_role_id`,
    method: "post",
    data: params,
  });
}
//获取负责人
export function searchChargeData(params = {}) {
  return request({
    url: `${base}/api/admin/list_by_role_id`,
    method: "post",
    data: {
      user_type: '0',
      ...params,
    },
  });
}
//运单为维度回去干线详情
export function waybillTrunkDetail(params = {}) {
  return request({
    url: `${base}/api/dispatch/waybill/details`,
    method: "post",
    data: params,
  });
}

//获取发货人
export function getConsignorList(params) {
  return request({
    url: `${base}/api/company/shipper/box`,
    method: "post",
    data: params,

  });
}
// 收货人接口
export function ConsigneeInterface(params) {
  return request({
    url: `${base}/api/company/consignee/box`,
    method: "post",
    data: params,

  });
}
// 路由模糊收索
export function routerbox(params) {
  return request({
    url: `${base}/api/company/router/box`,
    method: "post",
    data: params,

  });
}
// 地址的模糊搜索
export function regionbox(params) {
  return request({
    url: `${base}/api/company/region/box`,
    method: "post",
    data: params,

  });
}


//获取网点列表
export function reqWebsiteList(params) {
  return request({
    url: `${base}/api/company/organizational/branch/website_list`,
    method: "post",
    data: params,

  });
}

//编辑运单API
export function WaybillEditFn(params) {
  return request({
    url: `${base}/api/waybill/update`,
    method: "put",
    data: params,

  });
}

//运单详情API 需运单ID
export function WaybillDetailFn(params) {
  return request({
    url: `${base}/api/waybill/detail`,
    method: "post",
    data: params,

  });
}

//运单删除 API 需运单ID
export function WaybillDeleteFn(params) {
  return request({
    url: `${base}/api/waybill`,
    method: "delete",
    data: params,
  });
}

//导入运单 API
export function WaybillImportFn(params) {
  return request({
    url: `${base}/api/Waybill/import`,
    method: "post",
    headers: { "Content-Type": "multipart/form-data" },
    data: params,
  });
}

//导出运单 API
export function WaybillexportFn(params) {
  return request({
    url: `${base}/api/Waybill/download`,
    method: "get",
    data: params,
  });
}

//待揽收列表
// export function deliveryListFn(params) {
//   return request({
//     url: `${base}/api/waybillCollect/list`,
//     method: "post",
//     data: params,
//   });
// }

export function waybillcollectstaylist(params) {
  return request({
    url: `${base}/api/waybill/collect/stay/list`,
    method: "post",
    data: params,
  });
}

//揽收中列表API接口   
export function waybillcollectfinishlist(params) {
  return request({
    url: `${base}/api/waybill/collect/no/finish/list`,
    method: "post",
    data: params,
  });
}

//揽收完成列表API接口   
export function waybillcollectlist(params) {
  return request({
    url: `${base}/api/waybill/collect/finish/list`,
    method: "post",
    data: params,
  });
}



//提货单删除
export function deliveryDeleteFn(params) {
  return request({
    url: `${base}/api/waybillCollect/delete`,
    method: "delete",
    data: params,
  });
}
//提货流程创建 API
export function deliveryAddFn(params) {
  return request({
    url: `${base}/api/waybill/collect/create`,
    method: "post",
    data: params,
  });
}
//提货流程创建 API
export function carrierBox(params = {}) {
  return request({
    url: `${base}/api/company/carrier/box`,
    method: "post",
    data: params,
  });
}
//司机 API
export function driverBox(params = {}) {
  return request({
    url: `${base}/api/company/driver/box`,
    method: "post",
    data: params,
  });
}
//车牌号 API
export function vehicleBox(params = {}) {
  return request({
    url: `${base}/api/company/vehicle/box`,
    method: "post",
    data: params,
  });
}
//编辑提货流程 API
export function deliveryEditFn(params) {
  return request({
    url: `${base}/api/waybillCollect/update`,
    method: "put",
    data: params,
  });
}

//提货流程详情 API
export function deliveryDetailFn(params) {
  return request({
    url: `${base}/api/waybillCollect/detail`,
    method: "post",
    data: params
  });
}

//提货完成 API
export function deliveryFinishFn(params) {
  return request({
    url: `${base}/api/waybillCollect/finish/update`,
    method: "PUT",
    data: params,
  });
}
//取消提货完成 API
export function deliveryCancelFn(params) {
  return request({
    url: `${base}/api/waybillCollect/cancelFinish/update`,
    method: "PUT",
    data: params,
  });
}

//干线/支线 列表API
export function TrunklineListFn(params) {
  return request({
    url: `${base}/api/dispatch/list`,
    method: "post",
    data: params,
  });
}
// 干线/支线 创建API
export function TrunklineAddFn(params) {
  return request({
    url: `${base}/api/dispatch/create`,
    method: "post",
    data: params,
  });
}

//干线/支线 编辑 API
export function TrunklineEditFn(params) {
  return request({
    url: `${base}/api/dispatch/update`,
    method: "post",
    data: params,
  });
}

//干线/支线 详情 API
export function TrunklineDetailFn(params) {
  return request({
    url: `${base}/api/dispatch/detail`,
    method: "post",
    data: params,
  });
}

//发车 API
export function TrunklineDepartFn(params) {
  return request({
    url: `${base}/api/dispatch/depart`,
    method: "post",
    data: params,
  });
}

//到达 API
export function TrunklineArrivalFn(params) {
  return request({
    url: `${base}/api/dispatch/arrival`,
    method: "post",
    data: params,
  });
}

//取消发车 API
export function TrunklineDepartCancelFn(params) {
  return request({
    url: `${base}/api/dispatch/depart/cancel`,
    method: "post",
    data: params,
  });
}

//取消装车 API
export function TrunklineLoadCancelFn(params) {
  return request({
    url: `${base}/api/dispatch/loaded/cancel`,
    method: "post",
    data: params,
  });
}

// 配送 列表API
export function DistributionListFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/list`,
    method: "post",
    data: params
  });
}
// 带配送列表API
export function DistributionstayListFn(params) {
  return request({
    url: `${base}/api/waybill/distribution/stay/list`,
    method: "post",
    data: params
  });
}

//配送中 列表API
export function DistributionNoFinishList(params) {
  return request({
    url: `${base}/api/waybill/distribution/no/finish/list`,
    method: "post",
    data: params
  });
}
//配送完成  列表API
export function DistributionFinishList(params) {
  return request({
    url: `${base}/api/waybill/distribution/finish/list`,
    method: "post",
    data: params
  });
}
//配送 创建API
export function DistributionAddFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/create`,
    method: "post",
    data: params,
  });
}

//配送 创建API
export function waybillRepo(params) {
  return request({
    url: `${base}/api/waybillDistribution/option/list`,
    method: "post",
    data: params,
  });
}
//编辑 配送API
export function DistributionEditFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/amend/update`,
    method: "put",
    data: params,
  });
}

//配送 详情 API
export function DistributionDetailFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/detail`,
    method: "post",
    data: params
  });
}
//配送完成  API
export function DistributionSuccessFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/finish/update`,
    method: "put",
    data: params
  });
}
//取消配送完成  API
export function DistributionCancelFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/cancelFinish/update`,
    method: "put",
    data: params
  });
}
//删除配送单 API
export function DistributionDeleteFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/delete`,
    method: "delete",
    data: params
  });
}
//发货库存 API
export function StockListFn(params) {
  return request({
    url: `${base}/api/repertory/list`,
    method: "post",
    data: params
  });
}
export function FlowListFn(params) {
  return request({
    url: `${base}/api/repertory/flowList/list`,
    method: "post",
    data: params
  });
}


//签收管理 已签收列表  API
export function SignforListFn(params) {
  return request({
    url: `${base}/api/waybillSign/list`,
    method: "post",
    data: params
  });
}
//签收管理列表  自提列表API
export function SignforBringListFn(params) {
  return request({
    url: `${base}/api/waybillSign/bring/list`,
    method: "post",
    data: params
  });
}
//签收管理列表  送货列表API
export function SignforDeliveryListFn(params) {
  return request({
    url: `${base}/api/waybillSign/delivery/list`,
    method: "post",
    data: params
  });
}
//签收管理列表  新送货列表API
export function SignforDeliveryStayListFn(params) {
  return request({
    url: `${base}/api/waybill/sign/delivery/stay/list`,
    method: "post",
    data: params
  });
}
//签收管理列表  新自提列表API
export function SignforTakeStayListFn(params) {
  return request({
    url: `${base}/api/waybill/sign/take/stay/list`,
    method: "post",
    data: params
  });
}

//签收管理列表  拒签列表API
export function SignRejectList(params) {
  return request({
    url: `${base}/api/waybillSign/list/unSign`,
    method: "post",
    data: params
  });
}


//签收 自提创建 API
export function SignforAddFn(params) {
  return request({
    url: `${base}/api/waybillSign/create`,
    method: "post",
    data: params,
  });
}
//签收 选择列表 API
export function WaybillListForSign(params) {
  return request({
    url: `${base}/api/waybillSign/option/list`,
    method: "post",
    data: params,
  });
}
//签收 编辑 API
export function SignforEditFn(params) {
  return request({
    url: `${base}/api/waybillSign/update`,
    method: "post",
    data: params,
  });
}
//取消签单 API
export function SignforCancelFn(params) {
  return request({
    url: `${base}/api/waybillSign/cancelSign/update`,
    method: "put",
    data: params
  });
}
// 签收单个数 API
export function SignforCountFn(params) {
  return request({
    url: `${base}/api/waybillSign/sign_count`,
    method: "post",
    data: params
  });
}

//签收详情 API
export function SignforDetailFn(params) {
  return request({
    url: `${base}/api/waybillSign/detail`,
    method: "post",
    data: params
  });
}

//回单管理列表 API 1108换新接口
export function ReceiptListFn(params) {
  return request({
    url: `${base}/api/waybill_receipt/stay/list`,
    method: "post",
    data: params,
  });
}
// 新版已签收签收列表
export function ReceiptFinishList(params) {
  return request({
    url: `${base}/api/waybill_receipt/finish/list`,
    method: "post",
    data: params,
  });
}
// 新版回单待签收列表
export function ReceiptUnsignList(params) {
  return request({
    url: `${base}/api/waybill_receipt/unSign/list`,
    method: "post",
    data: params,
  });
}
// 新版回单已签收列表
export function ReceiptSignList(params) {
  return request({
    url: `${base}/api/waybill_receipt/sign/list`,
    method: "post",
    data: params,
  });
}
export function ReceiptWithStatusList(params) {
  return request({
    url: `${base}/api/waybill_receipt/receipt/list`,
    method: "post",
    data: params,
  });
}
// 回单签收
export function ReceiptSign(params) {
  return request({
    url: `${base}/api/waybill_receipt/receipt/sign`,
    method: "post",
    data: params,
  });
}
// 回单删除
export function ReceiptDelete(params) {
  return request({
    url: `${base}/api/waybill_receipt/delete`,
    method: "post",
    data: params,
  });
}
// 回单取消签收
export function ReceiptSignCancel(params) {
  return request({
    url: `${base}/api/waybill_receipt/receipt/sign/cancel`,
    method: "post",
    data: params,
  });
}
//回单创建API
export function ReceiptAddFn(params) {
  return request({
    url: `${base}/api/waybill_receipt/create`,
    method: "post",
    data: params,
  });
}

//回单编辑API
export function ReceiptEditFn(params) {
  return request({
    url: `${base}/api/waybill_receipt/update`,
    method: "post",
    data: params,
  });
}

//回单详情 API
export function ReceiptDetailFn(params) {
  return request({
    url: `${base}/api/waybill_receipt/detail/waybill_id`,
    method: "post",
    data: params,
  });
}

//回箱管理列表 API 1108换新接口
export function RecycleListFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/stay/list`,
    method: "post",
    data: params,
  });
}
export function RecyletFinishList(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/finish/list`,
    method: "post",
    data: params,
  });
}
export function RecyleUnsignList(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/unSign/list`,
    method: "post",
    data: params,
  });
}
export function RecyletSignList(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/sign/list`,
    method: "post",
    data: params,
  });
}
export function RecyletWithStatusList(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/receipt/box/list`,
    method: "post",
    data: params,
  });
}
//回箱管理创建 API
export function RecycleCreateFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/create`,
    method: "post",
    data: params,
  });
}
//回箱管理修改 API
export function RecycleUpdateFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/update`,
    method: "post",
    data: params,
  });
}
//回箱管理详情 API
export function RecycleDetailFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/detail`,
    method: "post",
    data: params,
  });
}
//回箱管理删除 API
export function RecycleDeleteFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/delete`,
    method: "post",
    data: params,
  });
}
//回箱签收
export function RecycleSignFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/sign`,
    method: "post",
    data: params,
  });
}
//回箱取消签收
export function RecycleSignCancelFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/sign/cancel`,
    method: "post",
    data: params,
  });
}
//回箱管理 接收 API
export function RecycleReceivedFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/action/received`,
    method: "post",
    data: params,
  });
}
//回箱管理 接收 API
export function RecycleWaybillBoxFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/waybill/box/info`,
    method: "post",
    data: params,
  });
}
//回箱管理 待干线签收列表 API
export function RecycleLineFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/receipt/box/line/list`,
    method: "post",
    data: params,
  });
}
//回箱管理 待末端签收列表 API
export function RecycleEndFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/receipt/box/end/list`,
    method: "post",
    data: params,
  });
}
//回箱管理 待厂商签收列表 API
export function RecycleVendorFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/receipt/box/vendor/list`,
    method: "post",
    data: params,
  });
}
//回箱管理 快递到厂商 API
export function RecycleManufacturerFn(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/action/manufacturer`,
    method: "post",
    data: params,
  });
}
//数据字典 listAPI
export function dictionaryBatch(params) {
  return request({
    url: `${base}/api/dictionary/batch/options`,
    method: "post",
    data: params,
  });
}

//创建异常 接口 
export function AbnormalRecordCreate(params) {
  return request({
    url: `${base}/api/abnormal_record/create`,
    method: "post",
    data: params,
  });
}
//承运商详情 接口 
export function TransportDetail(params) {
  return request({
    url: `${base}/api/transportType/detail`,
    method: "post",
    data: params,
  });
}
//提货详情列表 API
export function WaybillCollectDetailFn(params) {
  return request({
    url: `${base}/api/waybillCollect/details`,
    method: "post",
    data: params,
  });
}
//配送详情列表 API
export function WaybillDistributionDetailsFn(params) {
  return request({
    url: `${base}/api/waybillDistribution/details`,
    method: "post",
    data: params,
  });
}
//签收详情列表 API
export function WaybillSignDetailsFn(params) {
  return request({
    url: `${base}/api/waybillSign/waybill/details`,
    method: "post",
    data: params,
  });
}
//揽收选择列表 API
export function WaybillDeliveryOptionFn(params) {
  return request({
    url: `${base}/api/waybillCollect/option/list`,
    method: "post",
    data: params,
  });
}
//温度绑定 API
export function ThermometerBindFn(params) {
  return request({
    url: `${base}/api/waybill/bind/thermometer`,
    method: "post",
    data: params,
  });
}

//运单详情轨迹 API
export function reportGpsListFn(params) {
  return request({
    url: `${base}/api/reportGps/list`,
    method: "post",
    data: params,
  });
}
//运单总数量 API
export function waybillAmountListFn(params) {
  return request({
    url: `${base}/api/waybill/amount/list`,
    method: "post",
    data: params,
  });
}
//干线运输数量 API
export function waybillLoadableListFn(params) {
  return request({
    url: `${base}/api/dispatch/loadable/waybill`,
    method: "post",
    data: params,
  });
}

//获取运单温度数据
export function reqWaybillTemp(params) {
  return request({
    url: `${base}/api/reportdata/reportmanage/print`,
    method: "post",
    data: params,
  });
}

//揽收批次号列表APi
export function collectBatchList(params) {
  return request({
    url: `${base}/api/waybillCollect/batch/list`,
    method: "post",
    data: params,
  });
}
//干线批次号列表APi
export function dispatchBatchList(params) {
  return request({
    url: `${base}/api/dispatch/batch_no/options`,
    method: "post",
    data: params,
  });
}
//配送批次号列表APi
export function distributionBatchList(params) {
  return request({
    url: `${base}/api/waybillDistribution/batch/list`,
    method: "post",
    data: params,
  });
}
//签收批次号列表APi
export function signBatchList(params) {
  return request({
    url: `${base}/api/waybillSign/batch/list`,
    method: "post",
    data: params,
  });
}
//回单列表APi
export function receiptBatchList(params) {
  return request({
    url: `${base}/api/waybill_receipt/no/options`,
    method: "post",
    data: params,
  });
}
//回箱列表APi
export function recyleBatchList(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/express_no/options`,
    method: "post",
    data: params,
  });
}
//揽收编辑 运单维度APi
export function collectEditOne(params) {
  return request({
    url: `${base}/api/waybillCollect/one/update`,
    method: "post",
    data: params,
  });
}
//干线编辑 运单维度APi
export function dispatchEditOne(params) {
  return request({
    url: `${base}/api/dispatch/one/update`,
    method: "post",
    data: params,
  });
}
//配送编辑 运单维度APi
export function distributionEditOne(params) {
  return request({
    url: `${base}/api/waybillDistribution/one/update`,
    method: "post",
    data: params,
  });
}
//签收编辑 运单维度APi
export function signforEditOne(params) {
  return request({
    url: `${base}/api/waybillSign/one/update`,
    method: "post",
    data: params,
  });
}
//回单编辑 运单维度APi
export function receiptEditOne(params) {
  return request({
    url: `${base}/api/waybillDistribution/one/update`,
    method: "post",
    data: params,
  });
}
// 干线创建
export function dispatchCreate(params) {
  return request({
    url: `${base}/api/dispatch/create`,
    method: "post",
    data: params,
  });
}
// 干线详情
export function dispatchDetail(params) {
  return request({
    url: `${base}/api/dispatch/detail/network`,
    method: "post",
    data: params,
  });
}
// 干线详情
export function dispatchRouter(params) {
  return request({
    url: `${base}/api/dispatch/router`,
    method: "post",
    data: params,
  });
}
//回箱详情列表API 
export function detailsWaybillList(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/details/waybill`,
    method: "post",
    data: params,
  });
}
// 跳过节点
export function waybillSkipNode(params) {
  return request({
    url: `${base}/api/waybillSkipNode/create`,
    method: "post",
    data: params,
  });
}
// 预计时间
export function waybillExpectTime(params) {
  return request({
    url: `${base}/api/earlywarning/rule/matching`,
    method: "post",
    data: params,
  });
}
// step状态条
export function waybillStepStatus(params) {
  return request({
    url: `${base}/api/waybillSkipNode/controlIcons/list`,
    method: "post",
    data: params,
  });
}
// 到港入库创建
export function waybillWareHouseCreate(params) {
  return request({
    url: `${base}/api/carrierWarehouse/create`,
    method: "post",
    data: params,
  });
}
// 到港入库详情
export function waybillWareHouseDetail(params) {
  return request({
    url: `${base}/api/carrierWarehouse/detail`,
    method: "post",
    data: params,
  });
}
// 用户员工列表
export function userList(params = { is_employee: 1 }) {
  return request({
    url: `${base}/api/admin/box`,
    method: "post",
    data: params,
  });
}

//获取地址级联 回显
export function recognitionListcity(params) {
  return request({
    url: `${base}/api/company/region/address_recognition`,
    method: "post",
    data: params,
  });
}

//获取表头字段列表  
export function dynamicHeaderItemsList(params) {
  return request({
    url: `${base}/api/dynamicHeaderItems/list`,
    method: 'post',
    data: params
  })
}

//获取模块id API 接口
export function dynamicHeaderList(params) {
  return request({
    url: `${base}/api/dynamicHeader/list`,
    method: 'post',
    data: params
  })
}

//保存需要显示的表头字段 API接口  
export function dynamicHeaderCreate(params) {
  return request({
    url: `${base}/api/dynamicHeaderUser/create`,
    method: 'post',
    data: params
  })
}

//用户设定的表头字段 API接口 
export function dynamicHeaderUserList(params) {
  return request({
    url: `${base}/api/dynamicHeaderUser/list`,
    method: 'post',
    data: params
  })
}
// 接入计费规则
export function accountingrules(params) {
  return request({
    url: `${base}/api/billing_rule/marching_rule`,
    method: "post",
    data: params,
  });
}
// 运单信息 修改 API
export function waybillImportUpdate(params) {
  return request({
    url: `${base}/api/waybill/import/update`,
    method: "post",
    data: params,
  });
}

//提货单信息修改 API  
export function waybillCollectImportUpdate(params) {
  return request({
    url: `${base}/api/waybillCollect/import/update`,
    method: "post",
    data: params,
  });
}

//干线单信息修改 API  
export function dispatchImportUpdate(params) {
  return request({
    url: `${base}/api/dispatch/import/update`,
    method: "post",
    data: params,
  });
}

//配送单信息修改 API  
export function waybillDistributionImportUpdate(params) {
  return request({
    url: `${base}/api/waybillDistribution/import/update`,
    method: "post",
    data: params,
  });
}

//回单信息修改 API  
export function waybillReceiptImportUpdate(params) {
  return request({
    url: `${base}/api/waybillReceipt/import/update`,
    method: "post",
    data: params,
  });
}

//回箱信息修改 API  
export function waybillboxrecyleImportUpdate(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/import/update`,
    method: "post",
    data: params,
  });
}
// 待创建干线
export function stayList(params) {
  return request({
    url: `${base}/api/dispatch/stay/list`,
    method: "post",
    data: params,
  });
}
// 待发车列表
export function departurelist(params) {
  return request({
    url: `${base}/api/dispatch/departure/list`,
    method: "post",
    data: params,
  });
}
// 待到达(运输中)列表
export function noarrivelist(params) {
  return request({
    url: `${base}/api/dispatch/no/arrive/list`,
    method: "post",
    data: params,
  });
}
// 已到达列表
export function dispatcharrivelist(params) {
  return request({
    url: `${base}/api/dispatch/arrive/list`,
    method: "post",
    data: params,
  });
}
// 取消到达
export function dispatchcancel(params) {
  // console.log(params, "取消到达")
  return request({
    url: `${base}/api/dispatch/arrival/cancel`,
    method: "post",
    data: params,
  })
}
// 设置是否显示承运商
export function carrierLogisticsUpdate(params) {
  return request({
    url: `${base}/api/waybill/carrier/logistics/update`,
    method: "post",
    data: params,
  })
}
// 运单数据跟踪
export function waybillLogisticsList(params) {
  return request({
    url: `${base}/api/waybill/logistics/list`,
    method: "post",
    data: params,
  })
}
// 揽收单导出
export function waybillCollectExport(params) {
  return request({
    url: `${base}/api/waybill/collect/export`,
    method: "post",
    data: params,
  })
}
// 待揽收导出
export function waybillCollectStayExport(params) {
  return request({
    url: `${base}/api/waybill/collect/stay/export`,
    method: "post",
    data: params,
  })
}
// 干线单导出
export function waybillDispatchExport(params) {
  return request({
    url: `${base}/api/dispatch/export`,
    method: "post",
    data: params,
  })
}
// 待干线导出
export function waybillDispatchStayExport(params) {
  return request({
    url: `${base}/api/dispatch/stay/export`,
    method: "post",
    data: params,
  })
}
// 配送单导出
export function waybillDistributionExport(params) {
  return request({
    url: `${base}/api/waybill/distribution/export`,
    method: "post",
    data: params,
  })
}
// 待配送导出
export function waybillDistributionStayExport(params) {
  return request({
    url: `${base}/api/waybill/distribution/stay/export`,
    method: "post",
    data: params,
  })
}
// 配送单导出
export function waybillSignExport(params) {
  return request({
    url: `${base}/api/waybill/sign/export`,
    method: "post",
    data: params,
  })
}
// 待签收导出
export function DeliveryStayExport(params) {
  return request({
    url: `${base}/api/waybill/sign/delivery/stay/export`,
    method: "post",
    data: params,
  })
}
// 待签收导出
export function TakeStayExport(params) {
  return request({
    url: `${base}/api/waybill/sign/take/stay/export`,
    method: "post",
    data: params,
  })
}

// 待回单导出
export function WaybillReceiptStayExport(params) {
  return request({
    url: `${base}/api/waybillReceipt/stay/export`,
    method: "post",
    data: params,
  })
}
// 已签收签收导出
export function WaybillReceiptExport(params) {
  return request({
    url: `${base}/api/waybillReceipt/export`,
    method: "post",
    data: params,
  })
}
// 待回箱导出
export function WaybillRecyleStayExport(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/stay/export`,
    method: "post",
    data: params,
  })
}
// 回箱单导出
export function WaybillRecyleExport(params) {
  return request({
    url: `${base}/api/waybill_box_recyle/export`,
    method: "post",
    data: params,
  })
}
// 获取组织默认负责人列表
export function DefaultPersonList(params) {
  return request({
    url: `${base}/api/branch/default/responsible/person/match`,
    method: "post",
    data: params,
  })
}
// 签收时间
export function SignTimeControl(params) {
  return request({
    url: `${base}/api/waybill/sign/sign_time_control`,
    method: "post",
    data: params,
  })
}
// 提货时间
export function CollectTimeControl(params) {
  return request({
    url: `${base}/api/order/collect_time_control`,
    method: "post",
    data: params,
  })
}
// 费用开关
export function FeeEntryControl(params) {
  return request({
    url: `${base}/api/waybillSkipNode/FeeEntryControl`,
    method: "post",
    data: params,
  })
}
// 费用开关
export function CollectFinishCheck(params) {
  return request({
    url: `${base}/api/waybill/collect/finish/check`,
    method: "post",
    data: params,
  })
}

// 获取微信支付二维码
export function reqWxPayQrcode(params) {
  return request({
    url: `${base}/api/wechatpay/native/placeorder`,
    method: "post",
    data: params,
  })
}
// 获取微信支付二维码
export function WaybillWxPayQrcode(params) {
  return request({
    url: `${base}/api/wechatpay/native/waybill/placeorder`,
    method: "post",
    data: params,
  })
}

// 退款
export function reqRefund(params) {
  return request({
    url: `${base}/api/wechatpay/order/refund`,
    method: "post",
    data: params,
  })
}

// 查询支付状态
export function reqPaymentStatus(params) {
  return request({
    url: `${base}/api/wechatpay/order/query`,
    method: "post",
    data: params,
  })
}
// 查询支付状态-运单
export function WaybillPaymentStatus(params) {
  return request({
    url: `${base}/api/wechatpay/waybill/order/query`,
    method: "post",
    data: params,
  })
}
// 揽收完成后运单编辑权限限制
export function waybill_order_edit_status(params) {
  return request({
    url: `${base}/api/waybill/waybill_order_edit_status`,
    method: "post",
    data: params,
  })
}
// 意见反馈接口
export function feedback_create(params) {
  return request({
    url: `${base}/api/feedback/create`,
    method: "post",
    data: params,
  })
}
//获取客户默认订单配置
export function customer_order_params(params) {
  return request({
    url: `${base}/api/company/customer/order/params`,
    method: "post",
    data: params,
  })
}
//运单节点信息修改
export function waybillNodeUpdate(params) {
  return request({
    url: `${base}/api/waybillNode/update`,
    method: "post",
    data: params,
  })
}
//运单节点信息删除
export function waybillNodeDelete(params) {
  return request({
    url: `${base}/api/waybillNode/delete`,
    method: "post",
    data: params,
  })
}
export function thermometerIdentify(params) {
  return request({
    url: `${base}/api/company/thermometer/identify_create`,
    method: "post",
    data: params,
  })
}
export function transport_word_file(params) {
  return request({
    url: `${base}/api/send_company/waybill/transport_word_file`,
    method: "post",
    data: params,
  })
}
export function transport_excel_file(params) {
  return request({
    url: `${base}/api/send_company/waybill/transport_excel_file`,
    method: "post",
    data: params,
  })
}
export function ztoRecreate(params) {
  return request({
    url: `${base}/api/waybill/zto/recreate`,
    method: "post",
    data: params,
  })
}

//温度数据连续性检测
export function reqTempInterval(params) {
  return request({
    url: `${base}/api/report/temp/interval/check`,
    method: "post",
    data: params,
  })
}

//温度报告发送邮箱
export function reqSendEmail(params) {
  return request({
    url: `${base}/api/landing/match/temp/report/email`,
    method: "post",
    data: params,
  })
}

//重置温度报告
export function reqResetTemp(params) {
  return request({
    url: `${base}/api/landing/match/temp/report/reset`,
    method: "post",
    data: params,
  })
}